package com.tjetc.mapper;

import com.tjetc.domain.Doctormessge;
import com.tjetc.domain.Newborn;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DoctormessgeMapper {
    int deleteByPrimaryKey(Integer doctorId);

    int insert(Doctormessge record);

    int insertSelective(Doctormessge record);

    Doctormessge selectByPrimaryKey(Integer doctorId);

    int updateByPrimaryKeySelective(Doctormessge record);

    int updateByPrimaryKey(Doctormessge record);

    @Select("select * from newborn where doctor_id=#{id}")
    List<Newborn> sel(int id);

    @Select("select * from doctormessge where doctor_id=#{doctorId}")
    Doctormessge findBDI(Integer doctorId);

    @Select("select * from doctormessge")
    List<Doctormessge> selP();
}